/// id : 16
/// productType : 514
/// model : "Ener Smart 215-P100A"
/// name : "永泰工商业储能"
/// thingsMode : 616
/// description : null
/// nodeType : null
/// brokerId : 1001
/// protocolCode : ""
/// hasStatus : 1
/// display : 1
/// factoryId : 500004
/// config : "{\"addOperate\": {\"autoConfig\": 1, \"initSubDevice\": [{\"name\": \"EMS\", \"child\": [], \"aliasSn\": \"EMS01\", \"component\": \"0\", \"productId\": 1, \"connectDevice\": \"true\"}, {\"name\": \"电池堆\", \"child\": [{\"name\": \"电池簇\", \"child\": [{\"name\": \"BMU-1\", \"child\": [], \"aliasSn\": \"BMU-1\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-2\", \"child\": [], \"aliasSn\": \"BMU-2\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-3\", \"child\": [], \"aliasSn\": \"BMU-3\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-4\", \"child\": [], \"aliasSn\": \"BMU-4\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-5\", \"child\": [], \"aliasSn\": \"BMU-5\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-6\", \"child\": [], \"aliasSn\": \"BMU-6\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-7\", \"child\": [], \"aliasSn\": \"BMU-7\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-8\", \"child\": [], \"aliasSn\": \"BMU-8\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-9\", \"child\": [], \"aliasSn\": \"BMU-9\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}, {\"name\": \"BMU-10\", \"child\": [], \"aliasSn\": \"BMU-10\", \"component\": \"1\", \"productId\": 35, \"connectDevice\": \"false\"}], \"aliasSn\": \"电池簇\", \"component\": \"1\", \"productId\": 34, \"connectDevice\": \"false\"}], \"aliasSn\": \"电池堆01\", \"component\": \"0\", \"productId\": 2, \"connectDevice\": \"false\"}, {\"name\": \"PCS\", \"child\": [], \"aliasSn\": \"PCS01\", \"component\": \"0\", \"productId\": 3, \"connectDevice\": \"false\"}, {\"name\": \"空调\", \"child\": [], \"aliasSn\": \"空调01\", \"component\": \"0\", \"productId\": 7, \"connectDevice\": \"false\"}], \"inverterConfig\": {\"ratedCapacity\": \"215.04\", \"ratedOutputPower\": 100}}, \"delOperate\": {}, \"editOperate\": {}, \"selectDisplay\": 1}"

class DeviceTypeDetailModel {
  DeviceTypeDetailModel({
      num? id, 
      num? productType, 
      String? model, 
      String? name, 
      num? thingsMode, 
      dynamic description, 
      dynamic nodeType, 
      num? brokerId, 
      String? protocolCode, 
      num? hasStatus, 
      num? display, 
      num? factoryId, 
      String? config,}){
    _id = id;
    _productType = productType;
    _model = model;
    _name = name;
    _thingsMode = thingsMode;
    _description = description;
    _nodeType = nodeType;
    _brokerId = brokerId;
    _protocolCode = protocolCode;
    _hasStatus = hasStatus;
    _display = display;
    _factoryId = factoryId;
    _config = config;
}

  DeviceTypeDetailModel.fromJson(dynamic json) {
    _id = json['id'];
    _productType = json['productType'];
    _model = json['model'];
    _name = json['name'];
    _thingsMode = json['thingsMode'];
    _description = json['description'];
    _nodeType = json['nodeType'];
    _brokerId = json['brokerId'];
    _protocolCode = json['protocolCode'];
    _hasStatus = json['hasStatus'];
    _display = json['display'];
    _factoryId = json['factoryId'];
    _config = json['config'];
  }
  num? _id;
  num? _productType;
  String? _model;
  String? _name;
  num? _thingsMode;
  dynamic _description;
  dynamic _nodeType;
  num? _brokerId;
  String? _protocolCode;
  num? _hasStatus;
  num? _display;
  num? _factoryId;
  String? _config;
DeviceTypeDetailModel copyWith({  num? id,
  num? productType,
  String? model,
  String? name,
  num? thingsMode,
  dynamic description,
  dynamic nodeType,
  num? brokerId,
  String? protocolCode,
  num? hasStatus,
  num? display,
  num? factoryId,
  String? config,
}) => DeviceTypeDetailModel(  id: id ?? _id,
  productType: productType ?? _productType,
  model: model ?? _model,
  name: name ?? _name,
  thingsMode: thingsMode ?? _thingsMode,
  description: description ?? _description,
  nodeType: nodeType ?? _nodeType,
  brokerId: brokerId ?? _brokerId,
  protocolCode: protocolCode ?? _protocolCode,
  hasStatus: hasStatus ?? _hasStatus,
  display: display ?? _display,
  factoryId: factoryId ?? _factoryId,
  config: config ?? _config,
);
  num? get id => _id;
  num? get productType => _productType;
  String? get model => _model;
  String? get name => _name;
  num? get thingsMode => _thingsMode;
  dynamic get description => _description;
  dynamic get nodeType => _nodeType;
  num? get brokerId => _brokerId;
  String? get protocolCode => _protocolCode;
  num? get hasStatus => _hasStatus;
  num? get display => _display;
  num? get factoryId => _factoryId;
  String? get config => _config;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['productType'] = _productType;
    map['model'] = _model;
    map['name'] = _name;
    map['thingsMode'] = _thingsMode;
    map['description'] = _description;
    map['nodeType'] = _nodeType;
    map['brokerId'] = _brokerId;
    map['protocolCode'] = _protocolCode;
    map['hasStatus'] = _hasStatus;
    map['display'] = _display;
    map['factoryId'] = _factoryId;
    map['config'] = _config;
    return map;
  }

}